import { ApplyTypeEnum, PaymentStatusEnum } from '@/enums/membershipEnum';
import {
  CouponOrderStatusEnum,
  MemberCouponPermissionsEnum,
} from '@/enums/memberCouponEnum';
import { OrderAuditStateEnum, PhaseStateEnum } from '@/enums/orderEnum';
import type { IDictList } from '.';

const localDicts: IDictList = {
  /** 会员单位 - 成员等级 */
  memberLevel: [
    { dictLabel: '普通用户', dictValue: '0' },
    { dictLabel: '负责人', dictValue: '1' },
    { dictLabel: '管理员', dictValue: '2' },
    { dictLabel: '普通成员', dictValue: '3' },
  ],
  /** 用户类型 */
  applyType: [
    { dictLabel: '非会员', dictValue: ApplyTypeEnum.NOMEMBER },
    { dictLabel: '单位会员', dictValue: ApplyTypeEnum.UNIT },
    { dictLabel: '个人会员', dictValue: ApplyTypeEnum.PERSON },
  ],
  /** 会员类型 */
  memberType: [
    { dictLabel: '单位', dictValue: ApplyTypeEnum.UNIT },
    { dictLabel: '个人', dictValue: ApplyTypeEnum.PERSON },
  ],
  /** 优惠券权限 */
  ticketPermissions: [
    { dictLabel: '公开', dictValue: MemberCouponPermissionsEnum.PUBLIC, description: '所有人可见' },
    {
      dictLabel: '私密',
      dictValue: MemberCouponPermissionsEnum.PRIVACY,
      description: '仅分享可见',
    },
    {
      dictLabel: '部分可见',
      dictValue: MemberCouponPermissionsEnum.SICHTTEIL,
      description: '所选会员职务的负责人可见，若新增或修改已选择会员职务，可见范围也将更新。',
    },
  ],
  /** 优惠券领取后的状态 */
  couponReceivedStatus: [
    { dictLabel: '已使用', dictValue: CouponOrderStatusEnum.USED, statusColor: '#DAA03E' },
    { dictLabel: '未使用', dictValue: CouponOrderStatusEnum.RECEIVED, statusColor: '#2878FF' },
    { dictLabel: '已过期', dictValue: CouponOrderStatusEnum.EXPIRED, statusColor: '#FF3434' },
  ],

  phaseState: [
    { dictLabel: '预约', dictValue: PhaseStateEnum.SUBSCRIBE },
    { dictLabel: '已付款', dictValue: PhaseStateEnum.PAID },
    { dictLabel: '秘书处审核', dictValue: PhaseStateEnum.AUDIT },
    { dictLabel: '联络秘书处', dictValue: PhaseStateEnum.CONTACT },
    { dictLabel: '建立群聊', dictValue: PhaseStateEnum.CREATE_ROOM },
    { dictLabel: '已完成', dictValue: PhaseStateEnum.FINISH },
  ],
  orderType: [
    { dictLabel: '会费', dictValue: 'MEMBER_FEE' },
    { dictLabel: '解锁名片', dictValue: 'UNLOCK_BUSINESS_CARD' },
    { dictLabel: '秘书处拉群撮合', dictValue: 'SECRETARIAT' },
    { dictLabel: '解锁供需', dictValue: 'UNLOCK_BUSINESS_OPPORTUNITIES' },
  ],
  orderAuditState: [
    { dictLabel: '全部', dictValue: '' },
    { dictLabel: '待审核', dictValue: OrderAuditStateEnum.UNREVIEWED },
    { dictLabel: '已通过', dictValue: OrderAuditStateEnum.PASSED },
    { dictLabel: '已驳回', dictValue: OrderAuditStateEnum.REJECT },
  ],
  paymentStatus: [
    { dictLabel: '未缴费', dictValue: PaymentStatusEnum.NOTPAYCOST },
    { dictLabel: '已缴费', dictValue: PaymentStatusEnum.ALREADYPAYCOST },
    { dictLabel: '即将到期', dictValue: PaymentStatusEnum.DUE },
    { dictLabel: '欠费', dictValue: PaymentStatusEnum.ARREARAGE },
  ],
};

export default localDicts;
